package com.bt.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bt.mapper.DtsOrderGoodsMapper;
import com.bt.pojo.DtsOrderGoods;
import com.bt.vo.GoodsStmtVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wbt
 * @version v1.0
 * @project shop_manage
 * @data 2022/9/26 10:14
 **/
@Service
public class DtsOrderGoodsServiceImpl implements DtsOrderGoodsService {
    @Autowired
    private DtsOrderGoodsMapper orderGoodsMapper;
    @Override
    public List<DtsOrderGoods> findDtsOrderGoodsByOid(Integer oid) {
        return orderGoodsMapper.selectList(new QueryWrapper<DtsOrderGoods>().eq("order_id",oid));
    }

    @Override
    public List<GoodsStmtVo> findStmtVos() {
        return orderGoodsMapper.findStmtVos();
    }
}
